import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import index from '@/components/index'
import apply from '@/components/apply/apply'
import attendance from '@/components/attendance/attendance'
import addressBook from '@/components/addressBook/addressBook'
import entrance from '@/components/entrance/entrance'
import auth from '@/components/auth/auth'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      // name: 'index',
      component: index
    },
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path: '/apply', // 申请
      name: 'apply',
      component: apply
    },
    {
      path: '/attendance', // 出勤
      name: 'attendance',
      component: attendance
    },
    {
      path: '/address-book', // 通讯录
      name: 'addressBook',
      component: addressBook
    },
    {
      path: '/entrance', // 应用入口
      name: 'entrance',
      component: entrance
    },
    {
      path: '/hello',
      name: 'Hello',
      component: Hello
    },
    {
      path: '/auth',
      name: 'auth',
      component: auth
    }
  ]
})
